package com.you.atlas.web.member.module.screen;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.citrus.service.form.Group;
import com.alibaba.citrus.turbine.Context;
import com.alibaba.citrus.turbine.dataresolver.FormGroup;
import com.you.common.webx.AuthContext;
import com.you.member.biz.service.MemberQueryService;
import com.you.member.dal.dao.dataobject.MemberDO;

public class Modify {

	@Autowired
	private MemberQueryService memberQueryService;

	public void execute(@FormGroup("modifyMember") Group group, Context context) {

		MemberDO memberDO = memberQueryService.find(AuthContext.getContext()
				.getMemberId());
		group.mapTo(memberDO);
		 context.put("memberDO", memberDO);
	}
}
